package com.customization.haoda.duss;

import com.engine.core.cfg.annotation.CommandDynamicProxy;
import com.engine.core.interceptor.AbstractCommandProxy;
import com.engine.core.interceptor.Command;
import com.engine.kq.cmd.report.ExportExcelCmd;
import com.weaver.general.BaseBean;

import java.util.Map;

/**
 * @Title: Ecology9
 * @Company: 泛微软件
 * @author: weaver.Dusongsong
 * @version: 1.0
 * @CreateDate: 2021-06-15
 * @Description: ${description}
 * @ModifyLog:
 **/
@CommandDynamicProxy(target = ExportExcelCmd.class, desc="考勤汇总报表时长四舍五入")
public class NewExportExcelCmd extends AbstractCommandProxy<Map<String,Object>> {
    @Override
    public Map<String, Object> execute(Command<Map<String, Object>> targetCommand) {
        BaseBean baseBean = new BaseBean();
        //获取到被代理对象
        ExportExcelCmd exportExcelCmd = (ExportExcelCmd) targetCommand;

        //获取被代理对象的参数
        Map<String, Object> params = exportExcelCmd.getParams();

        baseBean.writeLog( ">>>>>NewExportExcelCmd>>>>>params",params );

        exportExcelCmd.setParams(params);
        //执行标准的业务处理
        Map<String, Object> result = nextExecute(targetCommand);
        baseBean.writeLog(">>>>>NewExportExcelCmd>>>>>> result ======  "+ result);
        return result;
    }

}
